<template>
  <div class="icon">
    <img :src="svg" alt="">
    <!-- <embed :src="svg"/> -->
    <p class="iconname" v-if="typeof showTitle !== 'undefined' && showTitle">{{title}}</p>
  </div>
</template>

<script>
export default {
  props: ['showTitle', 'title', 'svg']
};
</script>

<style lang="scss" scoped>
.icon {
  cursor: pointer;
  text-align: center;
  display: inline-block;
  embed,
  img {
    width: 60px;
    height: 60px;
  }
  .iconname {
    margin-top: 5px;
    color: #fff;
  }
}
</style>
